<include file="Public/header"/>
<include file="Public/banner"/>
<div class="row">
    <div class="col s12 m8">
        <div class="f-announcement-bloc">
            <div class="card f-announcement">
                <include file="Public/info"/>
            </div>
            <foreach name="noTwoList" item="noTwoList">
                <div class="card f-announcement">                    
                    <div class="card-content">
                        <h3 class="header"><a href="<{:U('Notice/indexNews',array('id'=>code($noTwoList['id'],1)))}>">
                            <eq name="Think.session.lang" value="1">
                                <{$noTwoList.en_title}>
                            <else/>
                                <{$noTwoList.title}>
                            </eq>
                            </a></h3> 
                        <p class="f-news-info">
                            <eq name="Think.session.lang" value="1">
                                <{$noTwoList.en_content|getText}>
                            <else/>
                                <{$noTwoList.content|getText}>
                            </eq>
                        </p>
                    </div>
                </div>                
            </foreach>
            <P class="f-btn center">
                <button class="btn waves-effect waves-light f-btn-blue c-btn-bold" type="submit"
                    name="action" id="showMore">
                            <eq name="Think.session.lang" value="1">
                                SHOW MORE
                            <else/>
                                显示更多
                            </eq>
                </button>
            </P>
        </div>

        <div class="f-activity-bloc">
            <div class="card f-activity">
                <div class="card-content">
                    <p class="card-title"><i>
                        <svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"
                             viewBox="0 0 20 20">
                            <path d="M6.7 3.8C3 3.8 0 6.4 0 9.6c0 1.8 0.9 3.4 2.4 4.4l-0.8 2 2.3-1.2c0.8 0.3 1.8 0.5 2.7 0.5 3.7 0 6.7-2.6 6.7-5.7C13.4 6.4 10.4 3.8 6.7 3.8zM3.5 11c-0.4 0-0.8-0.3-0.8-0.8 0-0.4 0.3-0.8 0.8-0.8 0.4 0 0.8 0.3 0.8 0.8C4.3 10.7 4 11 3.5 11zM6.5 11c-0.4 0-0.8-0.3-0.8-0.8 0-0.4 0.3-0.8 0.8-0.8S7.2 9.8 7.2 10.3C7.2 10.7 6.9 11 6.5 11zM9.4 11c-0.4 0-0.8-0.3-0.8-0.8 0-0.4 0.3-0.8 0.8-0.8s0.8 0.3 0.8 0.8C10.1 10.7 9.8 11 9.4 11zM19.2 5.7C19.2 2.6 16.2 0 12.5 0 9.8 0 7.5 1.3 6.5 3.2c0.1 0 0.2 0 0.2 0 4.1 0 7.4 2.8 7.4 6.3 0 0.6-0.1 1.2-0.3 1.8 0.8-0.1 1.5-0.4 2.1-0.7l2.7 1.2 -1.3-2.2C18.5 8.6 19.2 7.2 19.2 5.7z"
                                  fill="#737373"/>
                        </svg>
                    </i>
                        <eq name="Think.session.lang" value="1">
                            Activities 
                        <else/>
                            活动
                        </eq>                        
                    </p>
                    <table class="f-activity-list responsive-table centered ">
                        <thead>
                        <tr>
                            <eq name="Think.session.lang" value="1">
                                <th data-field="id" class="left">Topics</th>
                                <th data-field="time">Time</th>
                                <th data-field="participant">Participants</th>
                                <th data-field="sponsor">Host</th>
                            <else/>
                                <th data-field="id" class="left">话题</th>
                                <th data-field="time">时间</th>
                                <th data-field="participant">参与人数</th>
                                <th data-field="sponsor">发起人</th>
                            </eq>  
                        </tr>
                        </thead>
                        <tbody>
                            <foreach name="clubList" item="clubList">
                                <tr>
                                    <td class="first-child">
                                        <img src="<{$Think.const.PUBLIC_URL}>Upload/<{$clubList.logo}>" alt="" 
                                            <eq name="Think.session.lang" value="1">
                                                title="<{$clubList.en_name}>
                                            <else/>
                                                title="<{$clubList.name}>
                                            </eq>"/>
                                            <eq name="Think.session.lang" value="1">
                                                <a href="<{:U('Club/activityInfo',array('id'=>code($clubList['id'],1)))}>"><{$clubList.en_theme}></a>
                                                <p><span>Content :</span><{$clubList.en_content}></p>
                                            <else/>
                                                <a href="<{:U('Club/activityInfo',array('id'=>code($clubList['id'],1)))}>"><{$clubList.theme}></a>
                                                <p><span>内容 :</span><{$clubList.content}></p>
                                            </eq>
                                    </td>
                                    <td><{$clubList.add_time|substr=0,10}></td>
                                    <td>
                                        <neq name="clubList['activity_ids']" value="">
                                            <a href="<{:U('User/userList',array('uIds'=>code($clubList['activity_ids'],1)))}>"><{$clubList.id|getNum}></a>
                                        <else/>
                                            <{$clubList.id|getNum}>
                                        </neq>
                                    </td>
                                    <td>
                                        <a href="<{:U('User/info',array('id'=>code($clubList['assign_user_id'],1)))}>">
                                            <img src="<{$Think.const.PUBLIC_URL}>Upload/<{$clubList.small_photo}>" alt=""><span>
                                                <eq name="Think.session.lang" value="1">
                                                    <{$clubList.en_user}> 
                                                <else/>
                                                    <{$clubList.userName}>
                                                </eq>
                                            </span>
                                        </a>
                                    </td>
                                </tr>
                            </foreach>
                        </tbody>
                    </table>
                    <p class="f-btn center">
                        <button class="btn waves-effect waves-light f-btn-blue c-font-bold" type="submit"
                            name="action" id="activityList">
                           <eq name="Think.session.lang" value="1">
                                SHOW MORE
                            <else/>
                                显示更多
                            </eq>
                        </button>
                    </p>
                </div>
            </div>
        </div>
    </div>
<!--中间end-->
<include file='Public/foot'/>
<script>
    $("#showMore").each(function () {  
            $(this).click(function(){ 
                window.location.href="<?php echo U('Notice/indexNews',array('sign'=>code('1',1)))?>";
            });  
        });
     $("#activityList").each(function () {  
            $(this).click(function(){ 
                window.location.href="<?php echo U('Club/activityList')?>";
            });  
        });
</script>